/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package admin;

/**
 *
 * @author Hoai An
 */
public class UserDTO {
    private int id;
    private String userName;
    private String password;
    private int level;

    public UserDTO(int id, String userName, String password, int level) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.level = level;
    }

    public int getId() {
        return id;
    }

    public int getLevel() {
        return level;
    }

    public String getPassword() {
        String str = "";
        for(int i=0; i< password.length(); i++){
            str = str  + "" +"*";
        }
        return str;
    }

    public String getUserName() {
        return userName;
    }
    
}
